
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib uri="/struts-tags" prefix="s" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'register.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

  </head>
  
  <body>
  <table width="773" height="787" border="0" align="center">
  <tr>
    <td height="112" colspan="2" valign="top"><div align="center">
    <!--引入head.jsp到主界面来  -->
    <jsp:include flush="true" page="head.jsp"></jsp:include>
    </div></td>
  </tr>
  
  <tr>
  
    <td width="25%" height="500" valign="top"><div align="center">
    <jsp:include flush="true" page="left.jsp"></jsp:include>
    </div></td>
    
    <td width="75%" valign="top"><div align="center" >   
          <center>     
     <br><br>
     <font face="楷体" size="6" color="">
                                    显示全部学生        listall.jsp<br><br><br>
        </font>
    <hr><br>
    <br><a href="manager">管理员链接</a><br><br>
    
    
    <table width="100%" align="center" border="1">
    
    <tr>    
    <th>学生ID</th>
	<th>姓名</th>
	<th>账户</th>
	<th>密码</th>
	<th>年级</th>
	<th>专业</th>
	<th>学院</th>
	<th>班级</th>
	<th>性别</th>
	<th>指导老师</th>
	<th>邮件</th>
	<th>注册时间</th> 
    </tr>
    
    <s:iterator value="#request.list" >
    <tr>
    
	<td><s:property value="stu_id"/></td>
	<td><a href="show?name=<s:property value="name "/>" > <s:property value="name "/></a></td>
	<td><s:property value="count"/></td>
	<td><s:property value="code"/></td>
	<td><s:property value="grade"/></td>
	<td><s:property value="major"/></td>
	<td><s:property value="college"/></td>
	<td><s:property value="clas"/></td>
	<td><s:property value="sex"/></td>
	<td><s:property value="teacher"/></td>
	<td><s:property value="email"/></td>
	<td><s:property value="registerDate"/></td>
         
    </tr>

    </s:iterator>   
    </table>
    
    
   <br>
          删除操作：
   <form action="deleteStudent.action"> 
         要删除的id:<input type="int" name="student.stu_id" size="20"> <br> 
    <input type="submit" value="submit"/>
    </form>
    
    <br>

           修改操作：
    <s:form action="setStudent.action" method="post">
        <s:textfield name="student.stu_id" label="需要修改的id:"></s:textfield>
        <s:textfield name="student.count" label="账户"></s:textfield>
        <s:textfield name="student.code" label="密码"></s:textfield>
        <s:textfield name="student.name" label="姓名"></s:textfield>
        <s:textfield name="student.major" label="专业"></s:textfield>
        <s:textfield name="student.grade" label="年级"></s:textfield>
        <s:textfield name="student.college" label="学院"></s:textfield>
        <s:textfield name="student.clas" label="班级"></s:textfield>
        <s:textfield name="student.sex" label="性别"></s:textfield>
        <s:textfield name="student.teacher" label="指导老师"></s:textfield>
        <s:textfield name="student.email" label="邮件"></s:textfield>
        
        <s:submit value="提交"></s:submit>
    </s:form>
    


  
  
    </center>  

        
    </div></td>
  </tr>
  
  <tr>
    <td colspan="2"><div align="center">
     <jsp:include flush="true" page="tail.jsp"></jsp:include>
    </div></td>
  </tr>
    
  
</table>
  </body>
</html>










